hello guys this code are really help you by 
limitting the user to input a number on a
textbox to avoid error like Invalid data type 
if you are working on database

he code will look like this

	If (Asc(UCase(Chr(KeyAscii))) < 65 Or _
            Asc(UCase(Chr(KeyAscii))) > 91) And _
            KeyAscii <> 8 And KeyAscii <> 32 Then
            
                KeyAscii = 0
                
    	End If

hope this will help
thanks and enjoy!!!!

Download File